var web = document.getElementById('web');
var rule = document.getElementsByClassName('ruleshow')[0];
var closeBtn = document.getElementsByClassName('close')[0];
var btn = document.getElementsByClassName('btn')[0];
var ruleBtn = document.getElementsByClassName('rule')[0];
var join = document.getElementsByClassName('join')[0];

ruleBtn.addEventListener('click',function(){
	rule.style.display = "block";
})

closeBtn.addEventListener('click',function(){
	rule.style.display = "none";
})

join.onclick = function(){
	window.location.href = 'game.html';
}
